package no.ntnu.fp.su;

import java.sql.Timestamp;

/**
 * An event
 * 
 * @author abs
 * 
 */
public class Event {

	String content;
	int id;
	Timestamp time;

	/**
	 * 
	 * Creates a new event
	 * 
	 * @param {@link Integer} the id tag for the event
	 * @param {@link Timestamp} time of event
	 * @param {@link String} String, content
	 */
	public Event(int id, Timestamp time, String content) {
		this.id = id;
		if (time == null)
			this.time = new Timestamp(System.currentTimeMillis());
		else
			this.time = time;
		this.content = content;

	}

	public String getContent() {
		return content;
	}

	public int getId() {
		return id;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

}
